-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix macOS Ruby version handling #9465
Conversation
This reverts commit 11445e0.
Instead defer to the `HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH` variable.
Review period will end on 2020-12-09 at 17:29:11 UTC. |
Review period ended. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this change, unusable_ruby
will always return 0 on macOS systems that are not "NEW_ENOUGH", so those systems will be forced to use vendored Ruby. This behaviour is different from what we do on Linux (where we search PATH for usable Ruby)., which is probably OK, so 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Limiting Ruby to "system or Homebrew vendored" on macOS seems entirely reasonable.
Thanks for approvals and merge @mistydemeo and @maxim-belkin!
Yeh, this was my intent with the recent |
ruby.sh
: don't test ruby on macOS. Instead defer to theHOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH
variable.Also, revert "RbConfig: fix broken MacOS SDK paths" (#9452) because it's a bit more complex and we don't need it any more.